package com.ccys.doctor.controller;

import com.ccys.common.vo.ResponseResultApp;
import com.ccys.db.vo.doctor.passHistoryConsultants.GetPassHistoryConsultantsInitVo;
import com.ccys.db.vo.doctor.passHistoryConsultants.GetPassHistoryConsultantsPagingVo;
import com.ccys.db.vo.doctor.passHistoryConsultants.GetPassHistoryConsultantsVo;
import com.ccys.db.vo.doctor.passHistoryConsultants.HistoryRecommendVo;
import com.ccys.doctor.service.PassHistoryConsultantsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: WhiteCoat
 * @description: PassHistoryConsultants相关接口
 * @author: ZhangJingCan
 * @create: 2024-02-07 17:28
 **/
@RestController
@Api(tags = "PassHistoryConsultants相关接口")
@RequestMapping("passHistoryConsultants")
public class PassHistoryConsultantsController {

    @Autowired
    private PassHistoryConsultantsService passHistoryConsultantsService;

    @ApiOperation("GetPassHistoryConsultantsPaging")
    @GetMapping(value = "/GetPassHistoryConsultantsPaging")
    public ResponseResultApp<GetPassHistoryConsultantsPagingVo> getPassHistoryConsultantsPaging( String member_id,
                                                                                                 String page_index,
                                                                                                 String page_size,
                                                                                                 String child_id) {
        return passHistoryConsultantsService.getPassHistoryConsultantsPaging(member_id, page_index, page_size, child_id);
    }

    @ApiOperation("GetPassHistoryConsultants")
    @GetMapping(value = "/GetPassHistoryConsultants")
    public ResponseResultApp<GetPassHistoryConsultantsVo> getPassHistoryConsultants( String member_id,
                                                                                     String page_index,
                                                                                     String page_size,
                                                                                     String child_id) {
        return passHistoryConsultantsService.getPassHistoryConsultants(member_id, page_index, page_size, child_id);
    }

    @ApiOperation("GetPassHistoryConsultantsInit")
    @GetMapping(value = "/GetPassHistoryConsultantsInit")
    public ResponseResultApp<GetPassHistoryConsultantsInitVo> getPassHistoryConsultantsInit( String member_id,
                                                                                             String page_index,
                                                                                             String page_size,
                                                                                             String child_id) {
        return passHistoryConsultantsService.getPassHistoryConsultantsInit(member_id, page_index, page_size, child_id);
    }

    @GetMapping("/GetPassHistoryRecommend")
    public ResponseResultApp<HistoryRecommendVo> getPassHistoryRecommend( String memberId, String recommend_type) {
        return passHistoryConsultantsService.getPassHistoryRecommend(memberId,recommend_type);
    }

}
